home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2003 #3 / K-CD-3-2003.ISO / WinXP Service Pack 1 / xpsp1_sv_x86.exe / webfldrs.ms_ / webfldrs.msi / Cabinet.1.CAB / pubplace.htt < prev   
Encoding:
Text File  |  2001-01-05  |  7.8 KB  |  215 lines

  1. ∩╗┐<!-- 
  2.  * This file was automatically generated by Microsoft Internet Explorer 4.0 
  3.  * using the file %THISDIRPATH%\folder.htt (if customized) or
  4.  * %TEMPLATEDIR%\folder.htt (if not customized).
  5.  -->
  6.  
  7. <meta name="Version" content="2313"> <meta name="Microsoft Theme" content="none"> <meta name="Language Code" content="1053">
  8. <html>
  9.     <style>
  10.         body        {margin: 0; font: menu; color: black}
  11.         #FileList        {position: absolute; left: 0px; top: 0; width: 100%; height: 100%}
  12.         #Media        {margin-left: 15px}
  13.         #Panel        {position: absolute; width: 200px; height: 100%; overflow: auto}
  14.         #PieChart    {width: 100px; height: 50px; margin-top: 10px}
  15.         #Thumbnail    {width: 160px; height: 160px; margin-top: 0px}
  16.         #Status        {margin-left: 15px}
  17.         #Brand        {position: absolute; left: 30%; width: 70%; height: 100%; overflow: auto}
  18.         p        {margin-left: 15px; margin-top: 15px; margin-right: 15px}
  19.         p.Title        {margin-top: 8px; font: 13pt/13pt menu; font-weight: bold}
  20.         p.LogoLine    {margin-left: 0; margin-top: -5px; margin-right: 0; margin-bottom: 20px}
  21.         p.Warning    {font-weight: bold; color: red}
  22.         p.Links        {margin-top: 5px}
  23.         a.Command    {font-weight: bold}
  24.         div.Release     {width: 160px; text-align: right; background: buttonface; padding: 0px, 8px, 4px, 8px}
  25.     </style>
  26.  
  27.     <head>
  28.         <!-- allow references to any resources you might add to the folder -->
  29.         <!-- (a "webbot" is a special wrapper for FrontPage compatibility) -->
  30.         <!-- webbot bot="HTMLMarkup" id="MyFavoriteID" tag="base" startspan -->
  31.         <!-- base href="%THISDIRPATH%\" -->
  32.         <!-- webbot bot="HTMLMarkup"  endspan -->
  33.  
  34.         <script language="JavaScript">
  35.             var L_Prompt_Text    = "Markera ett objekt om du vill visa dess beskrivning.";
  36.             var L_Multiple_Text    = " items selected.";
  37.             var L_Size_Text        = "Size: ";
  38.             var L_FileSize_Text    = "Total File Size: ";
  39.             var L_Delimiter_Text    = ",";
  40.             var L_Bytes_Text    = " bytes";
  41.             var L_Attributes_Text    = "Attributes";
  42.             var L_Codes_Text    = "RHSaCE"; // suppress the Archive flag
  43.             var L_ReadOnly_Text     = "Read-only";
  44.             var L_Hidden_Text    = "Hidden";
  45.             var L_System_Text    = "System";
  46.             var L_Archive_Text    = "Archive";
  47.             var L_Compressed_Text    = "Compressed";
  48.             var L_Encrypted_Text    = "Encrypted";
  49.             var L_NoAttributes_Text = "(normal)";
  50.             var L_Properties_Text    = "P&roperties";
  51.             var timer        = 0;
  52.             var wantMedia        = false; // cool, but may hinder media file manipulation
  53.  
  54.             function FixSize() {
  55.                 // this function handles fixed panel sizing and collapsing when the window resizes
  56.                 if (document.body.clientWidth < 400) {
  57.                     document.all.Panel.style.visibility = "hidden";
  58.                     document.all.FileList.style.pixelLeft = 0;
  59.                 } else {
  60.                     document.all.Panel.style.visibility = "visible";
  61.                     document.all.FileList.style.pixelLeft = document.all.Panel.style.pixelWidth; 
  62.                 }
  63.                 document.all.FileList.style.pixelWidth = document.body.clientWidth - document.all.FileList.style.pixelLeft;
  64.             }
  65.  
  66.             function FormatNumber(n) {
  67.                 var t = "";
  68.                 var i, j = 0;
  69.                 for (i = n.length - 1; i >= 0; i--) {
  70.                     t = n.charAt(i) + t;
  71.                     if (i && ((++j % 3) == 0))
  72.                         t = L_Delimiter_Text + t;
  73.                 }
  74.                 return t;
  75.             }
  76.  
  77.             function Properties() {
  78.                 FileList.SelectedItems().Item(0).InvokeVerb(L_Properties_Text);
  79.             }
  80.  
  81.             function Init() {
  82.                 // call our FixSize() function whenever the window gets resized
  83.                 window.onresize = FixSize;
  84.                 FixSize();
  85.                 Info.innerHTML = L_Prompt_Text;
  86.             }
  87.         </script>
  88.  
  89.         <script language="JavaScript" for="FileList" event="SelectionChanged">
  90.             // this script updates the left info panel when you select icons
  91.             var fldr = FileList.Folder;
  92.             var items;
  93.             var name;
  94.             var data;
  95.             var text;
  96.             var title;
  97.             var size = 0;
  98.             var i;
  99.  
  100.             // cancel any pending status message
  101.             if (timer) {
  102.                 window.clearTimeout(timer);
  103.                 timer = 0;
  104.             }
  105.  
  106.             // erase any visible thumbnail since the selection changed
  107.             document.all.Thumbnail.style.display = "none";
  108.             document.all.Status.style.display = "none";
  109.  
  110.             // stop & destroy any media player
  111.             if (wantMedia)
  112.                 document.all.Media.innerHTML = "";
  113.  
  114.             data = FileList.SelectedItems().Count;
  115.             if (data == 0) {
  116.                 // nothing selected?
  117.                 Info.innerHTML = L_Prompt_Text;
  118.                 return;
  119.             }
  120.             else if (data > 1) {
  121.                 // more than one item selected?
  122.                 text = data + L_Multiple_Text + "<br>";
  123.                 if (data <= 100) {
  124.                     for (i = 0; i < data; i++)
  125.                         size += FileList.SelectedItems().Item(i).Size;
  126.                     if (size)
  127.                         text += "<br>" + L_FileSize_Text + FormatNumber(size.toString()) + L_Bytes_Text + "<br>";
  128.                     if (data <= 16)
  129.                         for (i = 0; i < data; i++)
  130.                             text += "<br>" + FileList.SelectedItems().Item(i).Name;
  131.                 }
  132.                 Info.innerHTML = text;
  133.                 return;
  134.             }
  135.  
  136.             // name
  137.             text = "<b>" +FileList.SelectedItems().Item(0).Name + "</b>";
  138.  
  139.             // replace Info with the new text
  140.             Info.innerHTML = text;
  141.  
  142.             if (wantMedia && size) {
  143.                 // show media preview or thumbnail based on file extension
  144.                 ext = name.substring(name.lastIndexOf(".") + 1, name.length);
  145.                 ext = ext.toLowerCase();        
  146.                 if (ext == 'avi' || ext == 'mov' || ext == 'qt' || ext == 'mpe' || ext == 'mpeg' || ext == 'mpg') {
  147.                     // show a movie player
  148.                     document.all.Media.innerHTML = '<object ID="Player" style="width: 160px; height: 148px" classid=clsid:05589FA1-C356-11CE-BF01-00AA0055595A><param name="FileName" value="' + items.Path + '"><param name=ShowDisplay value=0><param name=BorderStyle value=0></object>';
  149.                 } else if (ext == 'aif' || ext == 'aifc' || ext == 'aiff' || ext == 'au' || ext == 'mid' || ext == 'rmi' || ext == 'snd' || ext == 'wav') {
  150.                     // show a sound player
  151.                     document.all.Media.innerHTML = '<object ID="Player" style="width: 160px; height: 28px" classid=clsid:05589FA1-C356-11CE-BF01-00AA0055595A><param name="FileName" value="' + items.Path + '"><param name=ShowDisplay value=0></center></object>'
  152.                 }
  153.             }
  154.  
  155.             // try to generate a new thumbnail asynchronously, and delay the status message one second
  156.             if (size && (size < 10000000) && Thumbnail.displayFile(items.Path))
  157.                 timer = window.setTimeout('document.all.Status.style.display = ""', 1000);
  158.         </script>
  159.  
  160.         <script language="JavaScript" for="Thumbnail" event="OnThumbnailReady">
  161.             // when a valid thumbnail has been generated, display it
  162.             window.clearTimeout(timer);
  163.             timer = 0;
  164.             document.all.Status.style.display = "none";
  165.             if (document.all.Thumbnail.haveThumbnail() && document.all.Media.innerHTML == "")
  166.                 document.all.Thumbnail.style.display = "";
  167.         </script>
  168.     </head>
  169.  
  170.     <body scroll=no onload="Init()">
  171.         <!-- start left info panel -->
  172.         <div id=Panel style="background: white URL(file://%TEMPLATEDIR%\wvleft.bmp) no-repeat">
  173.             <p>
  174.             <object classid="clsid:E5DF9D10-3B52-11D1-83E8-00A0C90DC849" width=32 height=32>
  175.                 <param name="scale" value=100>
  176.             </object>
  177.  
  178.             <p class=Title>
  179.             <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  180.             %THISDIRNAME%
  181.             <!--webbot bot="HTMLMarkup" endspan -->
  182.             
  183.             <p class=LogoLine>
  184.             <img src="%TEMPLATEDIR%\wvline.gif">
  185.             
  186.             <p>
  187.             <span id=Info>
  188.             </span>
  189.  
  190.             <!-- this is the thumbnail viewer control -->
  191.             <object id=Thumbnail classid="clsid:1D2B4F40-1F10-11D1-9E88-00C04FDCAB92" style="display: none">
  192.             </object>
  193.  
  194.             <!-- this is the status message that pops up during thumbnail generation -->
  195.             <div id=Status style="display: none">
  196.                 Generating preview...
  197.             </div>
  198.             
  199.             <p>
  200.             <!-- this contains any ActiveMovie control created later -->
  201.             <div id=Media>
  202.             </div>
  203.             
  204.         </div>
  205.         <!-- end left info panel -->
  206.  
  207.         <!-- this is the standard file list control -->
  208.         <!-- webbot bot="HTMLMarkup" startspan -->
  209.         <object id=FileList border=0 tabindex=1 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
  210.         </object>
  211.         <!-- webbot bot="HTMLMarkup" endspan -->
  212.  
  213.     </body>
  214. </html>
  215.